package com.party.core.model.commune;

import com.party.core.model.BaseModel;

import java.util.Objects;

/**
 * @program: party
 * @description: 笔记本类型
 * @author: Hua Qunhao
 * @create: 2019-12-26 09:43
 **/
public class CNotebookType extends BaseModel {

    private String name;
    private String notebookName;
    private String notebookId;
    private Integer sort;

    public String getNotebookName() {
        return notebookName;
    }

    public void setNotebookName(String notebookName) {
        this.notebookName = notebookName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNotebookId() {
        return notebookId;
    }

    public void setNotebookId(String notebookId) {
        this.notebookId = notebookId;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "CNotebookType{" +
                "name='" + name + '\'' +
                ", notebookName='" + notebookName + '\'' +
                ", notebookId='" + notebookId + '\'' +
                ", sort=" + sort +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        CNotebookType that = (CNotebookType) o;
        return Objects.equals(name, that.name) &&
                Objects.equals(notebookName, that.notebookName) &&
                Objects.equals(notebookId, that.notebookId) &&
                Objects.equals(sort, that.sort);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), name, notebookName, notebookId, sort);
    }
}
